<form method="post" action="/tableopr">
    <input type=text name=tablename value={{tablename}}>
    <table width="100%" border="1" cellSpacing="0" cellPadding="0">
        <tr><td>idx</td><td>keyid</td>{% for fld in fields %}
            <td>{{fld}}</td> {% endfor %} <td>option</td>
        </tr> 
        {% for  keyid, row in values %}
        <tr>  {% for col in row %} <td>{{col}}</td> {% endfor %} 
            <td><input type=checkbox name=id value={{keyid}}>update</input></td>
        </tr> 
        {% endfor %} 
    </table>
    <input type=submit name=operator value=update></input>
    <input type=submit name=operator value=batdel></input>
</form>


<div id='pageinf'>
    {% for idx, url in pages %}
    <a href="{{url}}">{{idx}} </a>
    {% endfor %}
</div>
